package com.ddd.mill.domain.aggregate.sku.repository;

import com.ddd.mill.domain.aggregate.sku.entity.ProductSku;
import com.ddd.mill.domain.aggregate.sku.entity.ProductSkuValue;
import com.ddd.mill.infrastructure.persistent.repository.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author liu
 * @title: ProductSkuValueRepository
 * @projectName trading-center
 * @date 2020/11/3010:31
 */
public interface ProductSkuValueRepository extends Repository<ProductSkuValue,Long> {

    public void saveOrUpdate(Long productSkuId,String[] attributeIds);

    public Map<Long, List<ProductSkuValue>> getListBySkuList(List<ProductSku> productSkuList);

    public void saveBatch(List<ProductSkuValue> productSkuValueList);
}
